package xyz.hubery.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collections;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import xyz.hubery.domain.User;
import xyz.hubery.mapper.UserAuthAuditRecordMapper;
import xyz.hubery.domain.UserAuthAuditRecord;
import xyz.hubery.service.UserAuthAuditRecordService;
@Service
public class UserAuthAuditRecordServiceImpl extends ServiceImpl<UserAuthAuditRecordMapper, UserAuthAuditRecord> implements UserAuthAuditRecordService{

    @Override
    public List<UserAuthAuditRecord> findByUserId(Long id) {
        List<UserAuthAuditRecord> list = this.list(new LambdaQueryWrapper<UserAuthAuditRecord>().eq(UserAuthAuditRecord::getUserId, id));
        return list == null ? Collections.emptyList() : list;
    }
}
